package Tree;

/**
 * File Name: ArrBinaryTree
 * Date: 2020-07-23 16:00
 * Author: liangling
 * Description 数组方式存储树
 */
public class ArrBinaryTree {




    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5,6,7};
        //创建BinaryTree
        ArrTreeNode binaryTree = new ArrTreeNode(arr);
        //前序遍历
        binaryTree.preArr(0);
        //中序遍历
        binaryTree.midArr(0);
        //后序遍历
        binaryTree.lastArr(0);
    }
}
